Fix longitude in Garmin Training Center writes.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 10 Sep 2006 18:32:04 +0000 (18:32 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 10 Sep 2006 18:32:04 +0000 (18:32 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2363 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/gtrnctr.c

index ff81ba9a47baac2ba03fa7bda9a7eeb602481102..5851fc616fe3f534afc0b8a1efac3798cd14d35e 100644 (file)
@@ -136,7 +136,7 @@ gtc_waypt_pr(const waypoint *wpt)
        }
        gtc_write_xml(1, "<Position>\n");
        gtc_write_xml(0, "<LatitudeDegrees>%f</LatitudeDegrees>\n", wpt->latitude);
-       gtc_write_xml(0, "<LongitudeDegrees>%f</LongitudeDegrees>\n", wpt->latitude);
+       gtc_write_xml(0, "<LongitudeDegrees>%f</LongitudeDegrees>\n", wpt->longitude);
        gtc_write_xml(-1, "</Position>\n");
        if (wpt->altitude != unknown_alt) {
                gtc_write_xml(0, "<AltitudeMeters>%f</AltitudeMeters>\n", wpt->altitude);